package com.maigu.dataobject;
import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;
@Entity
@Data
@DynamicUpdate
public class OrderDetail {

  @Id
  private String detailId;
  private String orderId;
  private String productId;
  private String productName;
  private BigDecimal productPrice;
  private Integer productQuantity;
  private String productIcon;
  private Date createTime;
  private Date updateTime;

  public OrderDetail() {
    super();
  }

  @Override
  public String toString() {
    return "OrderDetail{" +
            "detailId='" + detailId + '\'' +
            ", orderId='" + orderId + '\'' +
            ", productId='" + productId + '\'' +
            ", productName='" + productName + '\'' +
            ", productPrice=" + productPrice +
            ", productQuantity=" + productQuantity +
            ", productIcon='" + productIcon + '\'' +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            '}';
  }
}
